Summary

Inserts a field in an EPT presentation template.

When an EPT document is formatted by the presentation template, Insert Field 2.0 writes the value of the specified EPT field into the returned Html stream.

Component properties
Category AS EPT
Version 2.1
Complies with Xhtml 1.0 / 1.1 rules Yes
Supported server programming languages C# Visual Basic.NET
Output content type inline

When to use

This component is very commonly used in presentation templates. The component inserts the value of an EPT field. If you create a presentation template in Content Studio this component is automatically included by the user interface.

Programming interface

Parameters

Field
The EPT field to use. This field must exist in the EPT schema of the document's category.  
HTMLEncode
Specifies whether to apply Html encoding to the value of the field. Normally this parameter should be set to true. The parameter can however be set to false when the ept-field already contains encoded data, to avoid double encoded Html.
ReplaceLineBreaks
Specifies whether to replace soft linebreaks with <br/>
EnableDirectEditing
Specifies whether to enable direct edit in the Web view.
Label
Optional, the text to display as a label before the content of the field. If the field is empty or does not exist, this label is ignored. This value is not Html encoded.
LabelAfter
Optional, the text to display as a label after the content of the field.  If the field is empty or does not exist, this label is ignored. This value is not Html encoded.
LabelEmpty
Optional, the text to display as a label if the field is empty or does not exist. This value is not Html encoded.

Remarks

The Label, LabelAfter and LabelEmpty parameters are NOT Html encoded. Thus it is possible to write Html in these fields.